{% extends "base.html" %}

{% load i18n %}

{% block title %}{% trans "Comment page" %}{% endblock %}

{% block meta %}{% include "base_markitup_includes.html" %}{% endblock %}

{% block body %}
  {% load comments %}
  {% get_comment_count for post as comment_count %}
  <div class="media">
    {% if post.user %}
      <a class="pull-left" href="/accounts/{{ comment.user }}">
        <img class="media-object" src="{{ post.user.site_profile.get_mugshot_url }}" />
      </a>
      <a href="{{ post.user.get_absolute_url }}">
        {{ post.user.site_profile.get_full_name_or_username }}
      </a>
    {% else %}
      {{ post.user.username }}
    {% endif %}
    <small>{{ post.submit_date }}</small>
  </div>
  {% load blog_filters %}
  <p style="text-align: justify">{{ post.comment|bbcode }}</p>
  <p class="muted" style="text-align: right">
    <a href="{% url comment_view post.id %}">
      <small>{% trans "Comments:" %} {{ comment_count }}</small>
    </a>
  </p>
  <hr />
{% include "post_comments.html" %}
{% load comments %}
{% get_comment_form for post as form %}
{% include "base_comment_form.html" %}
{% endblock %}